package com.xcmg.manage.feign;


import com.xcmg.manage.entity.Staff;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

//@Component
@FeignClient(name = "employee-service",path = "/employee")
public interface EmployeeFeignService {


    @RequestMapping("/getStaff")
    void printStaff();

    @RequestMapping("/addStaff")
    int addStaff(Staff staff);
}
